﻿@model List<Notification>
@if (Model != null)
{
    foreach (Notification n in Model)
    {
        var cmd = (CommandType)n.Cmd;

        var avatar = !string.IsNullOrWhiteSpace(n.Avatar) ? n.Avatar : string.Format("{0}{1}", ForumContext.Configuration.AvatarPath, "unknow.png");

        var action = ForumContext.GetText(LanguageSection.COMMAND, cmd.ToString());

        string at = !string.IsNullOrWhiteSpace(n.TopicName) ? n.TopicName : n.ForumName;
        
    <li onclick="$.MvcForum.jump('@n.Location')">
        <div class="p-5">
            <img src="@avatar" class="avatar" alt="@n.UserName" />
            <strong>@n.UserName</strong> @action <strong>@at</strong><br />
            @ForumContext.PrettyDate(n.Created)
            <br class="empty" />
        </div>
    </li>
   
    }
}
